package com.kindel.service.type.impl;

import com.kindel.mapper.type.BookTypeMapper;
import com.kindel.model.book.BookModel;
import com.kindel.model.type.BookTypeModel;
import com.kindel.service.book.BookService;
import com.kindel.service.type.BookTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by winte on 2017/8/28.
 */
@Service
public class BookTypeServiceImpl implements BookTypeService {

    @Autowired
    private BookTypeMapper bookTypeMapper;

    @Override
    public List<BookTypeModel> loadBookType() {
        return bookTypeMapper.loadBookType();
    }

    @Override
    public List<BookModel> loadBookTypeByName(String name) {
        return bookTypeMapper.loadBookTypeByName(name);
    }
}
